Replication files for "Citizenship and education trajectories among children of immigrants: A transition-oriented sequence analysis"
* Labussiere, Levels and Vink 2021
* 20-12-2022

Register data are not openly accessible in the Netherlands, which means that the data used in this paper cannot be made accessible for complete replications. Subject to this caveat, the present Dataverse aims at enhancing transparency as regards the construction and analysis of our data.
The following documents are available:
* Documentation
- Data construction.pdf: 		the main steps in the selection of the relevant population and the construction of the key variables are described
- Codebook.pdf: 			description of the variables used in the paper
- packages.txt: 			list of relevant packages

* Scripts
NOTE: The preparation of the data was conducted in Stata, but the transition-oriented optimal matching was performed using R. 
The resulting dissimilarity matrix was then imported into Stata to perform clustering and multinomial regressions.

- OMTR_dissimilarity_matrix.R:  	R script for the transition-oriented Optimal Matching 

	- states_to_transitions_matrix.csv: 	
	  matrix used in OMTR_dissimilarity_matrix.R for the recoding of sequences of states into sequences of transitions 
	  (see Section 2 Supplementary Materials)

	- substitution_costs_matrix.csv: 	
          matrix used in OMTR_dissimilarity_matrix.R containing substitution costs for the optimal matching distance 
	  (see Section 2 Supplementary Materials)

- clustering.do: 			Stata script for the clustering of the individual sequences of transistions

- OMTR_indexplots.R: 			R script for the indexplots by cluster

- multinomial_regressions.do: 		Stata script for the regression results

The present scripts reproduce the main outputs for the analysis:
Manuscript
  Figures
	2	OMTR_indexplots.R
	3	multinomial.do
	4	multinomial.do


Supplementary materials
  Tables
	S10   	multinomial_regressions.do 
	S11   	multinomial_regressions.do 
	S12   	multinomial_regressions.do 
	S13   	multinomial_regressions.do 
	S14   	multinomial_regressions.do 
	S15  	multinomial_regressions.do  
	S16  	multinomial_regressions.do
  Figures 
	S2	clustering.do
	S3  	clustering.do
	S4  	clustering.do
	S5	OMTR_indexplots.R 

If you have further questions, please do not hesitate to contact us!